package com.shy.springframework.context.support;


/**
 * @author yzpang
 * @desc:
 * @date: 2023/2/8 13:10
 */
public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext{
    private String[] configLocations;

    public ClassPathXmlApplicationContext(String configLocations) {
        this(new String[]{configLocations});
    }

    public ClassPathXmlApplicationContext(String[] configLocations) {
        this.configLocations = configLocations;
        refresh();
    }

    @Override
    protected String[] getConfigLocation() {
        return configLocations;
    }
}
